def check_rules(retrieval):
    # 检查检索式是否符合规范
    if "检索式" in retrieval:
        return 1.0, "规范通过"
    else:
        return 0.5, "缺少检索式关键词"